package com.sdrt.lums.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sdrt.lums.mapper.UserMapper;
import com.sdrt.lums.entity.User;
import com.sdrt.lums.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;

    @Autowired
    private UserMapper userMapper;

    @GetMapping("/selectList")
    public List<User> getList(){
       return userMapper.selectList(new QueryWrapper<>());
    }
}
